home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / manual / tmp_file.tex < prev    next >
LaTeX Document  |  1994-04-27  |  1.5 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: tmp_file.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 74 6d 70 5c 5f 66 69 |\section|{tmp\_fi|
|00000010| 6c 65 20 2d 2d 2d 20 75 | 6e 69 71 75 65 20 66 69 |le --- u|nique fi|
|00000020| 6c 65 6e 61 6d 65 20 67 | 65 6e 65 72 61 74 6f 72 |lename g|enerator|
|00000030| 7d 0d 5c 6c 61 62 65 6c | 7b 66 6e 3a 74 6d 70 5f |}.\label|{fn:tmp_|
|00000040| 66 69 6c 65 7d 0d 5c 69 | 6e 64 65 78 7b 74 6d 70 |file}.\i|ndex{tmp|
|00000050| 5c 5f 66 69 6c 65 28 29 | 7d 0d 5c 69 6e 64 65 78 |\_file()|}.\index|
|00000060| 7b 75 6e 69 71 75 65 20 | 66 69 6c 65 6e 61 6d 65 |{unique |filename|
|00000070| 20 67 65 6e 65 72 61 74 | 6f 72 7d 0d 5c 69 6e 64 | generat|or}.\ind|
|00000080| 65 78 7b 66 69 6c 65 6e | 61 6d 65 20 67 65 6e 65 |ex{filen|ame gene|
|00000090| 72 61 74 6f 72 7d 0d 5c | 62 65 67 69 6e 7b 72 61 |rator}.\|begin{ra|
|000000a0| 69 6c 7d 0d 54 6d 70 46 | 69 6c 65 20 3a 20 27 74 |il}.TmpF|ile : 't|
|000000b0| 6d 70 5c 5f 66 69 6c 65 | 27 20 27 28 27 20 27 29 |mp\_file|' '(' ')|
|000000c0| 27 20 3b 0d 5c 65 6e 64 | 7b 72 61 69 6c 7d 0d 0d |' ;.\end|{rail}..|
|000000d0| 54 68 65 20 5c 76 65 72 | 62 2b 74 6d 70 5f 66 69 |The \ver|b+tmp_fi|
|000000e0| 6c 65 2b 20 66 75 6e 63 | 74 69 6f 6e 20 67 65 6e |le+ func|tion gen|
|000000f0| 65 72 61 74 65 73 20 61 | 20 73 74 72 69 6e 67 20 |erates a| string |
|00000100| 77 68 69 63 68 20 63 61 | 6e 20 62 65 20 75 73 65 |which ca|n be use|
|00000110| 64 20 61 73 20 61 0d 74 | 65 6d 70 6f 72 61 72 79 |d as a.t|emporary|
|00000120| 20 66 69 6c 65 20 6e 61 | 6d 65 2e 20 20 54 68 65 | file na|me. The|
|00000130| 20 72 65 73 75 6c 74 69 | 6e 67 20 73 74 72 69 6e | resulti|ng strin|
|00000140| 67 20 73 74 61 72 74 73 | 20 77 69 74 68 20 5c 76 |g starts| with \v|
|00000150| 65 72 62 2b 72 6c 61 62 | 2d 2b 2c 20 74 68 65 6e |erb+rlab|-+, then|
|00000160| 0d 68 61 73 20 61 20 74 | 69 6d 65 20 28 20 6f 66 |.has a t|ime ( of|
|00000170| 20 74 68 65 20 66 6f 72 | 6d 20 7b 5c 69 74 20 68 | the for|m {\it h|
|00000180| 68 6d 6d 73 73 7d 29 2c | 20 65 6e 64 69 6e 67 20 |hmmss}),| ending |
|00000190| 77 69 74 68 20 61 73 20 | 61 20 75 6e 69 71 75 65 |with as |a unique|
|000001a0| 20 6e 75 6d 62 65 72 2e | 0d 0d 49 74 20 69 73 20 | number.|..It is |
|000001b0| 70 6f 73 73 69 62 6c 65 | 2c 20 69 66 20 75 6e 6c |possible|, if unl|
|000001c0| 69 6b 65 6c 79 2c 20 74 | 68 61 74 20 74 68 69 73 |ikely, t|hat this|
|000001d0| 20 72 6f 75 74 69 6e 65 | 20 63 61 6e 20 67 65 6e | routine| can gen|
|000001e0| 65 72 61 74 65 20 74 77 | 6f 20 69 64 65 6e 74 69 |erate tw|o identi|
|000001f0| 63 61 6c 0d 66 69 6c 65 | 6e 61 6d 65 73 2e 20 20 |cal.file|names. |
|00000200| 49 66 20 79 6f 75 20 63 | 61 6e 20 67 65 6e 65 72 |If you c|an gener|
|00000210| 61 74 65 20 61 20 66 69 | 6c 65 6e 61 6d 65 2c 20 |ate a fi|lename, |
|00000220| 72 65 6c 6f 61 64 20 5c | 76 65 72 62 2b 74 6d 70 |reload \|verb+tmp|
|00000230| 5f 66 69 6c 65 2e 72 2b | 2c 20 61 6e 64 0d 67 65 |_file.r+|, and.ge|
|00000240| 6e 65 72 61 74 65 20 61 | 6e 6f 74 68 65 72 20 66 |nerate a|nother f|
|00000250| 69 6c 65 6e 61 6d 65 2c | 20 61 6c 6c 20 69 6e 73 |ilename,| all ins|
|00000260| 69 64 65 20 6f 6e 65 20 | 73 65 63 6f 6e 64 2c 20 |ide one |second, |
|00000270| 74 68 65 6e 20 74 68 65 | 79 20 77 69 6c 6c 20 62 |then the|y will b|
|00000280| 65 20 74 68 65 0d 73 61 | 6d 65 2e 20 54 68 69 73 |e the.sa|me. This|
|00000290| 20 69 73 20 73 6f 20 75 | 6e 6c 69 6b 65 6c 79 20 | is so u|nlikely |
|000002a0| 61 73 20 74 6f 20 62 65 | 20 70 65 72 76 65 72 73 |as to be| pervers|
|000002b0| 65 2e 20 4d 6f 72 65 20 | 6c 69 6b 65 6c 79 20 69 |e. More |likely i|
|000002c0| 73 20 74 68 61 74 20 67 | 65 6e 65 72 61 74 69 6e |s that g|eneratin|
|000002d0| 67 0d 61 20 66 69 6c 65 | 6e 61 6d 65 20 61 74 20 |g.a file|name at |
|000002e0| 74 68 65 20 73 61 6d 65 | 20 74 69 6d 65 20 65 61 |the same| time ea|
|000002f0| 63 68 20 64 61 79 20 77 | 69 6c 6c 20 70 72 6f 64 |ch day w|ill prod|
|00000300| 75 63 65 20 74 68 65 20 | 73 61 6d 65 20 66 69 6c |uce the |same fil|
|00000310| 65 6e 61 6d 65 2e 0d 0d | 24 5c 4c 6f 6e 67 72 69 |ename...|$\Longri|
|00000320| 67 68 74 61 72 72 6f 77 | 24 20 54 68 69 73 20 69 |ghtarrow|$ This i|
|00000330| 73 20 6e 6f 74 20 61 6e | 20 5c 52 4c 61 42 5c 20 |s not an| \RLaB\ |
|00000340| 62 75 69 6c 74 2d 69 6e | 20 66 75 6e 63 74 69 6f |built-in| functio|
|00000350| 6e 2e 20 20 54 68 69 73 | 20 66 75 6e 63 74 69 6f |n. This| functio|
|00000360| 6e 0d 69 73 20 6e 6f 72 | 6d 61 6c 6c 79 20 6c 6f |n.is nor|mally lo|
|00000370| 61 64 65 64 20 6f 6e 20 | 73 74 61 72 74 2d 75 70 |aded on |start-up|
|00000380| 20 66 72 6f 6d 20 74 68 | 65 20 5c 76 65 72 62 2b | from th|e \verb+|
|00000390| 74 6d 70 5f 66 69 6c 65 | 2e 72 2b 20 66 69 6c 65 |tmp_file|.r+ file|
|000003a0| 20 69 6e 20 74 68 65 0d | 73 74 61 6e 64 61 72 64 | in the.|standard|
|000003b0| 20 5c 76 65 72 62 2b 72 | 6c 69 62 2b 20 64 69 72 | \verb+r|lib+ dir|
|000003c0| 65 63 74 6f 72 79 2e 20 | 55 73 65 20 6f 66 20 74 |ectory. |Use of t|
|000003d0| 68 65 20 5c 76 65 72 62 | 2b 2d 72 2b 20 6f 70 74 |he \verb|+-r+ opt|
|000003e0| 69 6f 6e 2c 20 69 6e 63 | 6f 72 72 65 63 74 6c 79 |ion, inc|orrectly|
|000003f0| 20 0d 73 65 74 74 69 6e | 67 20 74 68 65 20 5c 76 | .settin|g the \v|
|00000400| 65 72 62 2b 52 4c 41 42 | 5f 4c 49 42 5f 44 49 52 |erb+RLAB|_LIB_DIR|
|00000410| 2b 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 61 6c 20 |+ enviro|nmental |
|00000420| 76 61 72 69 61 62 6c 65 | 2c 20 6f 72 20 6d 6f 64 |variable|, or mod|
|00000430| 69 66 79 69 6e 67 0d 5c | 76 65 72 62 2b 74 6d 70 |ifying.\|verb+tmp|
|00000440| 5f 66 69 6c 65 2e 72 2b | 20 6d 61 79 20 6d 61 6b |_file.r+| may mak|
|00000450| 65 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |e this f|unction |
|00000460| 75 6e 61 76 61 69 6c 61 | 62 6c 65 2e 0d 0d 5c 70 |unavaila|ble...\p|
|00000470| 61 72 61 67 72 61 70 68 | 7b 45 78 61 6d 70 6c 65 |aragraph|{Example|
|00000480| 7d 0d 5c 69 6e 64 65 78 | 7b 65 78 61 6d 70 6c 65 |}.\index|{example|
|00000490| 20 6f 66 20 74 6d 70 5c | 5f 66 69 6c 65 28 29 7d | of tmp\|_file()}|
|000004a0| 0d 5c 69 6e 64 65 78 7b | 74 6d 70 5c 5f 66 69 6c |.\index{|tmp\_fil|
|000004b0| 65 28 29 21 65 78 61 6d | 70 6c 65 7d 0d 5c 62 65 |e()!exam|ple}.\be|
|000004c0| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0d 3e 20 |gin{verb|atim}.> |
|000004d0| 74 6d 70 5f 66 69 6c 65 | 28 29 0d 72 6c 61 62 2d |tmp_file|().rlab-|
|000004e0| 31 38 31 32 30 30 2e 31 | 0d 3e 20 74 6d 70 5f 66 |181200.1|.> tmp_f|
|000004f0| 69 6c 65 28 29 0d 72 6c | 61 62 2d 31 38 31 32 31 |ile().rl|ab-18121|
|00000500| 30 2e 32 0d 3e 20 74 6d | 70 5f 66 69 6c 65 28 29 |0.2.> tm|p_file()|
|00000510| 0d 72 6c 61 62 2d 31 38 | 31 32 31 38 2e 33 0d 3e |.rlab-18|1218.3.>|
|00000520| 20 74 6d 70 5f 66 69 6c | 65 28 29 0d 72 6c 61 62 | tmp_fil|e().rlab|
|00000530| 2d 31 38 31 32 34 37 2e | 34 0d 3e 20 6c 6f 61 64 |-181247.|4.> load|
|00000540| 28 22 2f 75 73 72 2f 6c | 6f 63 61 6c 2f 6c 69 62 |("/usr/l|ocal/lib|
|00000550| 2f 72 6c 61 62 2f 72 6c | 69 62 2f 74 6d 70 5f 66 |/rlab/rl|ib/tmp_f|
|00000560| 69 6c 65 2e 72 22 29 3b | 20 61 20 3d 20 74 6d 70 |ile.r");| a = tmp|
|00000570| 5f 66 69 6c 65 28 29 20 | 2e 2e 2e 0d 3e 20 6c 6f |_file() |....> lo|
|00000580| 61 64 28 22 2f 75 73 72 | 2f 6c 6f 63 61 6c 2f 6c |ad("/usr|/local/l|
|00000590| 69 62 2f 72 6c 61 62 2f | 72 6c 69 62 2f 74 6d 70 |ib/rlab/|rlib/tmp|
|000005a0| 5f 66 69 6c 65 2e 72 22 | 29 3b 20 62 20 3d 20 74 |_file.r"|); b = t|
|000005b0| 6d 70 5f 66 69 6c 65 28 | 29 0d 20 61 20 3d 0d 72 |mp_file(|). a =.r|
|000005c0| 6c 61 62 2d 31 38 31 35 | 32 34 2e 31 0d 20 62 20 |lab-1815|24.1. b |
|000005d0| 3d 0d 72 6c 61 62 2d 31 | 38 31 35 32 34 2e 31 0d |=.rlab-1|81524.1.|
|000005e0| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0d 0d |\end{ver|batim}..|
|000005f0| 5c 6e 65 77 70 61 67 65 | 0d 0d 0d |\newpage|... |
+--------+-------------------------+-------------------------+--------+--------+